const http = require('http')
const https = require('https')
const { resolve } = require('path')
const url = require('url')

let req = http.request('http://www.taobao.com', (res) => {
    console.log(res.statusCode)
    
})

req.on('error', error => {
    console.log(error)
})

req.write('')
req.end()